﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<iss.sg4210.se18.team6s.jass.DAL.GeoArea>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    DeleteGeoArea
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Manage GeoArea - Delete</h2>
    <h3 class="deleteconfirm">
        Are you sure you want to delete this?</h3>
    <fieldset style="width: 600px">
        <%: Html.ValidationSummary(true) %>
        <legend>GeoArea Information</legend>
        <table>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Name</div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%: Model.Name %></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Description</div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%: Model.Description %></div>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    <% 
                        using (Html.BeginForm())
                        { %>
                    <p>
                        <input type="submit" value="Delete" class="cssbutton" />
                    </p>
                    <% } %>
                </td>
            </tr>
        </table>
    </fieldset>
    <p>
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>
    <script type="text/javascript">
        $(function () {
            $("#deleteForm").click(function () {
                return confirm('Are you sure you want to delete this product');
            });
        });
    </script>
</asp:Content>
